Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add table aws_app_runner_service Closes #2248 #2279

Merged
merged 1 commit into from
Aug 30, 2024
Merged

Add table aws_app_runner_service Closes #2248 #2279

merged 1 commit into from
Aug 30, 2024

Conversation

ParthaI
Copy link
Contributor

@ParthaI ParthaI commented Aug 21, 2024

Integration test logs

Logs
No env file present for the current environment:  staging 
 Falling back to .env config
No env file present for the current environment:  staging
customEnv TURBOT_TEST_EXPECTED_TIMEOUT undefined

SETUP: tests/aws_app_runner_service []

PRETEST: tests/aws_app_runner_service

TEST: tests/aws_app_runner_service
Running terraform
data.aws_caller_identity.current: Reading...
data.aws_partition.current: Reading...
data.aws_region.primary: Reading...
data.aws_partition.current: Read complete after 0s [id=aws]
data.aws_region.primary: Read complete after 0s [id=us-east-1]
data.aws_region.alternate: Reading...
data.aws_region.alternate: Read complete after 0s [id=us-east-2]
data.aws_caller_identity.current: Read complete after 0s [id=xxxxxxxxxxxx]
data.null_data_source.resource: Reading...
data.null_data_source.resource: Read complete after 0s [id=static]

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  # aws_apprunner_service.named_test_resource will be created
  + resource "aws_apprunner_service" "named_test_resource" {
      + arn                            = (known after apply)
      + auto_scaling_configuration_arn = (known after apply)
      + id                             = (known after apply)
      + service_id                     = (known after apply)
      + service_name                   = "turbottest69447"
      + service_url                    = (known after apply)
      + status                         = (known after apply)
      + tags                           = {
          + "Name" = "turbottest69447"
        }
      + tags_all                       = {
          + "Name" = "turbottest69447"
        }

      + source_configuration {
          + auto_deployments_enabled = false

          + image_repository {
              + image_identifier      = "public.ecr.aws/aws-containers/hello-app-runner:latest"
              + image_repository_type = "ECR_PUBLIC"

              + image_configuration {
                  + port = "8000"
                }
            }
        }
    }

Plan: 1 to add, 0 to change, 0 to destroy.

Changes to Outputs:
  + account_id    = "xxxxxxxxxxxx"
  + aws_region    = "us-east-1"
  + resource_aka  = (known after apply)
  + resource_id   = (known after apply)
  + resource_name = "turbottest69447"
aws_apprunner_service.named_test_resource: Creating...
aws_apprunner_service.named_test_resource: Still creating... [10s elapsed]
aws_apprunner_service.named_test_resource: Still creating... [20s elapsed]
aws_apprunner_service.named_test_resource: Still creating... [30s elapsed]
aws_apprunner_service.named_test_resource: Still creating... [40s elapsed]
aws_apprunner_service.named_test_resource: Still creating... [50s elapsed]
aws_apprunner_service.named_test_resource: Still creating... [1m0s elapsed]
aws_apprunner_service.named_test_resource: Still creating... [1m10s elapsed]
aws_apprunner_service.named_test_resource: Still creating... [1m20s elapsed]
aws_apprunner_service.named_test_resource: Still creating... [1m30s elapsed]
aws_apprunner_service.named_test_resource: Still creating... [1m40s elapsed]
aws_apprunner_service.named_test_resource: Still creating... [1m50s elapsed]
aws_apprunner_service.named_test_resource: Still creating... [2m0s elapsed]
aws_apprunner_service.named_test_resource: Still creating... [2m10s elapsed]
aws_apprunner_service.named_test_resource: Still creating... [2m20s elapsed]
aws_apprunner_service.named_test_resource: Still creating... [2m30s elapsed]
aws_apprunner_service.named_test_resource: Still creating... [2m40s elapsed]
aws_apprunner_service.named_test_resource: Still creating... [2m50s elapsed]
aws_apprunner_service.named_test_resource: Still creating... [3m0s elapsed]
aws_apprunner_service.named_test_resource: Still creating... [3m10s elapsed]
aws_apprunner_service.named_test_resource: Still creating... [3m20s elapsed]
aws_apprunner_service.named_test_resource: Creation complete after 3m22s [id=arn:aws:apprunner:us-east-1:xxxxxxxxxxxx:service/turbottest69447/0ae00883c8354484ac9a993bdace08fc]

Warning: Deprecated

  with data.null_data_source.resource,
  on variables.tf line 44, in data "null_data_source" "resource":
  44: data "null_data_source" "resource" {

The null_data_source was historically used to construct intermediate values
to re-use elsewhere in configuration, the same can now be achieved using
locals or the terraform_data resource type in Terraform 1.4 and later.

(and one more similar warning elsewhere)

Apply complete! Resources: 1 added, 0 changed, 0 destroyed.

Outputs:

account_id = "xxxxxxxxxxxx"
aws_region = "us-east-1"
resource_aka = "arn:aws:apprunner:us-east-1:xxxxxxxxxxxx:service/turbottest69447/0ae00883c8354484ac9a993bdace08fc"
resource_id = "0ae00883c8354484ac9a993bdace08fc"
resource_name = "turbottest69447"

Running SQL query: test-get-query.sql

Time: 18.2s. Rows returned: 1. Rows fetched: 1. Hydrate calls: 0.

Scans:
  1) aws_app_runner_service.aws: Time: 17.8s. Fetched: 1. Hydrates: 0. Quals: arn=arn:aws:apprunner:us-east-1:xxxxxxxxxxxx:service/turbottest69447/0ae00883c8354484ac9a993bdace08fc.

[
  {
    "arn": "arn:aws:apprunner:us-east-1:xxxxxxxxxxxx:service/turbottest69447/0ae00883c8354484ac9a993bdace08fc",
    "service_id": "0ae00883c8354484ac9a993bdace08fc",
    "service_name": "turbottest69447"
  }
]
✔ PASSED

Running SQL query: test-list-query.sql

Time: 464ms. Rows returned: 1. Rows fetched: 1. Hydrate calls: 0.

Scans:
  1) aws_app_runner_service.aws: Time: 351ms. Fetched: 1. Hydrates: 0.

[
  {
    "arn": "arn:aws:apprunner:us-east-1:xxxxxxxxxxxx:service/turbottest69447/0ae00883c8354484ac9a993bdace08fc",
    "service_id": "0ae00883c8354484ac9a993bdace08fc",
    "service_name": "turbottest69447"
  }
]
✔ PASSED

Running SQL query: test-turbot-query.sql

Time: 485ms. Rows returned: 1. Rows fetched: 1. Hydrate calls: 1.

Scans:
  1) aws_app_runner_service.aws: Time: 375ms. Fetched: 1. Hydrates: 1. Quals: arn=arn:aws:apprunner:us-east-1:xxxxxxxxxxxx:service/turbottest69447/0ae00883c8354484ac9a993bdace08fc.

[
  {
    "account_id": "xxxxxxxxxxxx",
    "akas": [
      "arn:aws:apprunner:us-east-1:xxxxxxxxxxxx:service/turbottest69447/0ae00883c8354484ac9a993bdace08fc"
    ],
    "region": "us-east-1",
    "title": "turbottest69447"
  }
]
✔ PASSED

POSTTEST: tests/aws_app_runner_service

TEARDOWN: tests/aws_app_runner_service

SUMMARY:

1/1 passed.

Example query results

Results
> select * from aws_app_runner_service
+-----------------+----------------------------------+---------------------------------------------------------------------------------------------------+---------------------------+---------------------------------------+---------------------------+------------+------>
| service_name    | service_id                       | arn                                                                                               | created_at                | service_url                           | updated_at                | deleted_at | kms_k>
+-----------------+----------------------------------+---------------------------------------------------------------------------------------------------+---------------------------+---------------------------------------+---------------------------+------------+------>
| turbottest84377 | 064db330f2fd41b38c889777f8a74ec0 | arn:aws:apprunner:us-east-1:xxxxxxxxxxxx:service/turbottest84377/064db330f2fd41b38c889777f8a74ec0 | 2024-08-21T17:17:12+05:30 | vceuhthrgs.us-east-1.awsapprunner.com | 2024-08-21T17:17:12+05:30 | <null>     | <null>
+-----------------+----------------------------------+---------------------------------------------------------------------------------------------------+---------------------------+---------------------------------------+---------------------------+------------+------>

> select * from aws_app_runner_service where arn = 'arn:aws:apprunner:us-east-1:xxxxxxxxxxxx:service/turbottest84377/064db330f2fd41b38c889777f8a74ec0'
+-----------------+----------------------------------+---------------------------------------------------------------------------------------------------+---------------------------+---------------------------------------+---------------------------+------------+------>
| service_name    | service_id                       | arn                                                                                               | created_at                | service_url                           | updated_at                | deleted_at | kms_k>
+-----------------+----------------------------------+---------------------------------------------------------------------------------------------------+---------------------------+---------------------------------------+---------------------------+------------+------>
| turbottest84377 | 064db330f2fd41b38c889777f8a74ec0 | arn:aws:apprunner:us-east-1:xxxxxxxxxxxx:service/turbottest84377/064db330f2fd41b38c889777f8a74ec0 | 2024-08-21T17:17:12+05:30 | vceuhthrgs.us-east-1.awsapprunner.com | 2024-08-21T17:17:12+05:30 | <null>     | <null>
+-----------------+----------------------------------+---------------------------------------------------------------------------------------------------+---------------------------+---------------------------------------+---------------------------+------------+------>

@ParthaI ParthaI requested a review from misraved August 21, 2024 12:11
@ParthaI ParthaI self-assigned this Aug 21, 2024
@ParthaI ParthaI linked an issue Aug 21, 2024 that may be closed by this pull request
@misraved misraved merged commit 35077b1 into main Aug 30, 2024
1 check passed
@misraved misraved deleted the issue-2248 branch August 30, 2024 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add table aws_app_runner_Service
2 participants